package com.avic.map.dal.mapper;

import com.avic.map.dal.condition.PageQueryMapShipCondition;
import com.avic.map.dal.model.MapShipResource;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description 地图应急监控船舶对象mybatis接口
 * @Author huangsheng
 * @Date 2018/10/1 15:38
 */
@Mapper
public interface MapShipResourceMapper {

    /**
     * 新增数据
     *
     * @param mapShipResource
     * @return
     */
    int insertMapShipResource(MapShipResource mapShipResource);

    /**
     * 删除数据通过数据编号
     *
     * @param shipNumber
     * @return
     */
    int deleteByShipNumber(String shipNumber);

    /**
     * 查询列表数据
     *
     * @param pageQueryMapShipCondition
     * @return
     */
    List<MapShipResource> mapShipList(PageQueryMapShipCondition pageQueryMapShipCondition);

    /**
     * 删除所有数据
     *
     * @return
     */
    int deleteAll();

    int mapShipListTotal(PageQueryMapShipCondition pageQueryMapShipCondition);

    int updateShipName(@Param("shipName") String shipName, @Param("shipNumber") String shipNumber);

    List<MapShipResource> queryAllVdmShip();
}